package com.hyy.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {
    //人员错误码
    ErrorCode REGISTER_INFO_IS_NULL=new ErrorCode(100,"注册信息为空");
    ErrorCode MAIL_ERROR=new ErrorCode(101,"邮箱格式不正确");
    ErrorCode PHONE_NUMBER_ERROR=new ErrorCode(102,"手机号格式不正确");
    ErrorCode IDENTITY_ERROR=new ErrorCode(103,"身份码错误");
    ErrorCode PASSWORD_IS_NULL=new ErrorCode(104,"管理员密码不能为空");
    ErrorCode PASSWORD_ERROR=new ErrorCode(105,"密码格式不正确");
    ErrorCode MAIL_USED=new ErrorCode(106,"邮箱被使用过");
    ErrorCode PHONE_NUMBER_USED=new ErrorCode(107,"手机号被使用过");
    ErrorCode LOGIN_INFO_NOT_EXIST=new ErrorCode(108,"登录信息不存在");
    ErrorCode LOGIN_FORMAT_NOT_EXIST=new ErrorCode(109,"只允许邮箱或者手机号登录");
    ErrorCode LOGIN_ACCOUNT_NOT_EXIST=new ErrorCode(110,"用户账号不存在");
    ErrorCode EMAIL_FORMAT_ERROR=new ErrorCode(111,"邮箱格式不正确");
    ErrorCode USER_EMAIL_NULL=new ErrorCode(112,"用户邮箱不存在");
    ErrorCode VERIFICATION_CODE_ERROR=new ErrorCode(113,"验证码不正确");




    //活动错误码
    ErrorCode CREATE_ACTIVITY_INFO_IS_NULL=new ErrorCode(300,"创建活动信息为空");
    ErrorCode ACTIVITY_USERID_NO_EXIST=new ErrorCode(301,"选取了数据库中不存在的人员id");
    ErrorCode ACTIVITY_PRIZE_NO_EXIST=new ErrorCode(302,"选取了数据库中不存在的奖品id");
    ErrorCode PRIZE_AMOUNT_OUT=new ErrorCode(303,"活动中，规定奖品数量不能大于人员数量");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR=new ErrorCode(304,"活动奖品等级不存在");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(305, "活动相关状态转换失败");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(306, "缓存活动的活动id为空");
    ErrorCode CACHE_ACTIVITY_ID_ERROR = new ErrorCode(307, "缓存活动的活动id有误");
    ErrorCode ACTIVITY_ID_ERROR = new ErrorCode(308, "活动id有问题");
    ErrorCode PRIZE_ID_ERROR = new ErrorCode(309, "奖品id有问题");
    ErrorCode PRIZE_OR_ACTIVITY_ID_ERROR = new ErrorCode(310, "奖品id或者活动id有问题");
    ErrorCode ACTIVITY_CREATE_USERID_NO_EXIST=new ErrorCode(311,"创建这个活动的用户的id不存在");



    //抽奖错误码
    ErrorCode ACTIVITY_OR_PRIZE_IS_EMPTY = new ErrorCode(400, "抽奖活动或关联的奖品不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401, "抽奖活动已结束，无法抽奖");
    ErrorCode ACTIVITY_PRIZE_COMPLETED = new ErrorCode(402, "当前奖品已经被抽取，无法抽奖");
    ErrorCode WINNER_PRIZE_AMOUNT_ERROR = new ErrorCode(403, "中奖人数与奖品数量不一致，无法抽奖");
    ErrorCode WINNER_USER_ID_ERROR = new ErrorCode(404, "人员ID错误");


    //图片错误码
    ErrorCode PICTURE_UPLOAD_ERROR=new ErrorCode(500,"图片上传失败");

}
